"""
应用配置管理模块
"""

# 系统状态配置
SYSTEM_STATUS = {
    'running': False,
    'camera_connected': True,
    'last_detection_time': None,
    'total_processed': 0,
    'total_defective': 0,
    'total_normal': 0,
    'defect_counts': {
        'Crazing': 0,
        'Inclusion': 0,
        'Patches': 0,
        'Pitted Surface': 0,
        'Rolled-in Scale': 0,
        'Scratches': 0
    }
}

# 系统配置
SYSTEM_CONFIG = {
    'detection_enabled': True,
    'sorting_enabled': True,
    'voice_control_enabled': True,
    'target_detection_enabled': True,
    'detection_regions': [
        {'name': 'Region 1', 'x': 0, 'y': 0, 'width': 100, 'height': 100, 'enabled': True},
        {'name': 'Region 2', 'x': 100, 'y': 0, 'width': 100, 'height': 100, 'enabled': False}
    ],
    'defect_types': {
        'crazing': {'enabled': True, 'threshold': 0.85},
        'inclusion': {'enabled': True, 'threshold': 0.75},
        'patches': {'enabled': True, 'threshold': 0.8},
        'pitted_surface': {'enabled': True, 'threshold': 0.9},
        'rolled_in_scale': {'enabled': True, 'threshold': 0.7},
        'scratches': {'enabled': True, 'threshold': 0.8},
    }
}

# Flask配置
FLASK_CONFIG = {
    'SECRET_KEY': 'vision_inspection_system_2025',
    'DEBUG': True
} 